$OpenBSD: patch-man_CMakeLists_txt,v 1.1 2014/04/03 09:05:47 ajacoutot Exp $
--- man/CMakeLists.txt.orig	Thu Apr  3 10:25:56 2014
+++ man/CMakeLists.txt	Thu Apr  3 10:26:17 2014
@@ -24,7 +24,7 @@ add_custom_command(OUTPUT C/deja-dup.1 C/deja-dup-pref
                    COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/help2man -N -i ${CMAKE_CURRENT_SOURCE_DIR}/include.main -L en_US.UTF-8 ${CMAKE_BINARY_DIR}/deja-dup/deja-dup -o C/deja-dup.1
                    COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/help2man -N -i ${CMAKE_CURRENT_SOURCE_DIR}/include.pref -L en_US.UTF-8 ${CMAKE_BINARY_DIR}/deja-dup/preferences/deja-dup-preferences -o C/deja-dup-preferences.1
                    DEPENDS deja-dup deja-dup-preferences)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/C/deja-dup.1 ${CMAKE_CURRENT_BINARY_DIR}/C/deja-dup-preferences.1 DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/man/man1")
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/C/deja-dup.1 ${CMAKE_CURRENT_BINARY_DIR}/C/deja-dup-preferences.1 DESTINATION "${CMAKE_INSTALL_PREFIX}/man/man1")
 list(APPEND MAN_TARGETS C/deja-dup.1 C/deja-dup-preferences.1)
 
 foreach(LINGUA ${LINGUAS})
@@ -35,7 +35,7 @@ foreach(LINGUA ${LINGUAS})
                      COMMAND env DEJA_DUP_LOCALEDIR=${CMAKE_CURRENT_BINARY_DIR}/locales DEJA_DUP_LANGUAGE=${LINGUA} ${CMAKE_CURRENT_SOURCE_DIR}/help2man -N -i ${CMAKE_CURRENT_SOURCE_DIR}/include.main -L en_US.UTF-8 ${CMAKE_BINARY_DIR}/deja-dup/preferences/deja-dup-preferences -o ${LINGUA}/deja-dup-preferences.1
                      DEPENDS translations deja-dup deja-dup-preferences)
 
-  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LINGUA}/deja-dup.1 ${CMAKE_CURRENT_BINARY_DIR}/${LINGUA}/deja-dup-preferences.1 DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/man/${LINGUA}/man1")
+  install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${LINGUA}/deja-dup.1 ${CMAKE_CURRENT_BINARY_DIR}/${LINGUA}/deja-dup-preferences.1 DESTINATION "${CMAKE_INSTALL_PREFIX}/man/${LINGUA}/man1")
 
   list(APPEND MAN_TARGETS ${LINGUA}/deja-dup.1 ${LINGUA}/deja-dup-preferences.1)
 endforeach ()
